﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using IssueTracker.Business.BO;
using IssueTracker.Business.Entity;

namespace IssueTracker.Service
{
    public class ProjectService: IProjectService
    {

        #region IProjectService Members

        public Project CreateProject(Project project)
        {
            ProjectBO bo = new ProjectBO();
            
            return bo.AddNew(project);
        }

        public Project UpdateProject(Project project)
        {
            ProjectBO bo = new ProjectBO();

            return bo.UpdateProject(project);
        }


        public void DeleteProject(Project project)
        {
            ProjectBO bo = new ProjectBO();

            bo.DeleteProject(project);
        }

        public IEnumerable<Project> ListProjects()
        {
            ProjectBO bo = new ProjectBO();

            return bo.ListProjects();

        }

        public Project GetProject(int id)
        {
            ProjectBO bo = new ProjectBO();

            return bo.GetProject(id);
        }

        #endregion
    }
}
